<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<!-- Page Breadcrumb -->
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('user/index')}">会员管理</a>
				</li>
				<li class="active">会员详情</li>
			</ul>
		</div>
		<!-- /Page Breadcrumb -->

		<!-- Page Body -->
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="tabbable">
						<ul class="nav nav-tabs" id="myTab">
							<li class="active">
								<a href="javascript:;" aria-expanded="true">
                                                		基本信息
                                                </a>
							</li>

							<li class="tab-red">
								<a href="{:U('user/invite',['id'=>$id])}" aria-expanded="false">
                                                	推广会员
                                                </a>
							</li>

							<li class="tab-red">
								<a href="{:U('user/account',['id'=>$id])}" aria-expanded="false">
                                            	账户日志
                                            </a>
							</li>

						</ul>

						<div class="tab-content">
							<table class="table table-bordered">
								<tbody>
									<tr>
										<td width="150">ID：</td>
										<td>{$id}</td>
									</tr>
									<tr>
										<td>用户名：</td>
										<td>{$nickname}</td>
									</tr>
									<tr>
										<td>身份：</td>
										<td>{$identity|userIdentity}</td>
									</tr>
									<tr>
										<td>状态：</td>
										<td>
											<eq name="status" value="ACTIVE">
												正常
											<else />
												锁定
											</eq>
										</td>
									</tr>
									<tr>
										<td>手机号码：</td>
										<td><label>{$mobile}</label> <a href="{:U('user/mobile',['id'=>$id])}" class="margin-left-10 btn btn-default btn-xs ajax-load">修改</a>
										</td>
									</tr>
									<tr>
										<td>邮箱：</td>
										<td><span>{$email} </span></td>
									</tr>
									<tr>
										<td>余额：</td>
										<td>
											可用余额：<span class="badge badge-blueberry">￥{$balance|sprintf='%.2f',###} </span>
											冻结余额：<span class="badge badge-blueberry">￥{$freeze_balance|sprintf='%.2f',###} </span>
										</td>
									</tr>
									<tr>
										<td>积分：</td>
										<td>
											可用积分：<span class="badge badge-blueberry">{$integral} </span>
											待用积分：<span class="badge badge-blueberry">{$stored_integral} </span>
											不可倍增积分：<span class="badge badge-blueberry">{$unstore_integral} </span>
										</td>
									</tr>
									<tr>
										<td>商品券：</td>
										<td><span class="badge badge-blueberry">{$coupon} </span></td>
									</tr>

									<tr>
										<td>微信号：</td>
										<td>{$wechat}</td>
									</tr>
									<tr>
										<td>qq：</td>
										<td>{$qq}</td>
									</tr>

									<tr>
										<td>上级：</td>
										<td>
											{$invit_string}
										</td>
									</tr>
									<tr>
										<td>注册时间：</td>
										<td>{$reg_time|format_time}</td>
									</tr>
									<tr>
										<td>注册平台：</td>
										<td>{$reg_platform}</td>
									</tr>
									<tr>
										<td>个人简介：</td>
										<td>{$intro}</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="horizontal-space"></div>

				</div>
			</div>

		</div>
		<!-- /Page Body -->
	</div>

</block>
<block name="footer">
	<script>
//		$("#unbind_mobile").click(function(){
//			var _this = $(this);
//			var href = $(this).attr('href');
//			if(href){
//				$.get(href,{},function(xdata){
//					tips(xdata.message)
//					if(xdata.status == 'success'){
//						_this.parent().find('label').remove();
//						_this.remove();
//					}
//				},'json')
//			}			
//			return false;
//		});
	</script>
</block>
